#include "globalsettings.h"
#include "version.h"

GlobalSettings::GlobalSettings() { }

GlobalSettings& GlobalSettings::instance()
{
    static GlobalSettings inst;
    return inst;
}

QString GlobalSettings::buildDateTime()
{
    return QString(__DATE__) + ' ' + __TIME__;
}

QString GlobalSettings::currentMajorVersion()
{
    return QString(YINGCE_VERSION_STR);
}

QString GlobalSettings::currentVersion()
{
    return QString(YINGCE_VERSION_STR) + ' ' + buildDateTime();
}
